// api.js

import request from '../httpRequest/request';

// 获取category列表
export const CategoryList = async({ pageNum, pageSize}) => {
  return request.get('/category/list', { params: { pageNum, pageSize } });
};

// 删除category
export const CategoryDelete =async (id) => {
  return request.delete(`/category/delete/${id}`);
};

// 更新category
export const CategoryUpdate = (id,data) => {
  return request.put(`/category/update/${id}`,data);
};

// 添加category
export const CategoryAdd = (group_info) => {
  return request.post('/category/add', group_info);
};



